import request from '@/utils/request' // 引入封装得axios

// 添加用户
export function addUser (params) {
    return request({
        url: '/web/add/users',
        method: 'post',
        data: params
    })
}

// 检查用户
export function checkUser (username) {
    return request({
        url: '/web/query/users/select%7C*/where%7Cusername=@'+username+'@',
        method: 'get'
    })
}

// 检查用户
export function login (username,password) {
    return request({
        url: '/web/login/'+username+'/'+password,
        method: 'get'
    })
}

